/// 应用品牌化配置
/// App branding configuration
class AppBranding {
  // 应用名称
  static const String appName = 'GameWiki Pro';
  static const String appNameChinese = '游戏百科专业版';
  
  // 应用版本
  static const String appVersion = '2.0.0';
  static const String buildNumber = '1';
  
  // 应用描述
  static const String appDescription = 'Professional game wiki and guide application';
  static const String appDescriptionChinese = '专业的游戏百科和攻略应用';
  
  // 开发者信息
  static const String developerName = 'GameWiki Team';
  static const String developerEmail = 'support@gamewiki.com';
  static const String supportUrl = 'https://gamewiki.com/support';
  
  // 应用图标路径
  static const String appIconPath = 'assets/icons/app_icon.png';
  static const String splashIconPath = 'assets/icons/splash_icon.png';
  
  // 品牌颜色
  static const int primaryColorValue = 0xFF6366F1; // Indigo
  static const int secondaryColorValue = 0xFF8B5CF6; // Purple
  static const int accentColorValue = 0xFF06B6D4; // Cyan
  
  // 渐变色配置
  static const List<int> primaryGradient = [
    0xFF6366F1, // Indigo
    0xFF8B5CF6, // Purple
  ];
  
  static const List<int> secondaryGradient = [
    0xFF06B6D4, // Cyan
    0xFF3B82F6, // Blue
  ];
  
  static const List<int> backgroundGradient = [
    0xFF1E293B, // Slate 800
    0xFF0F172A, // Slate 900
  ];
  
  // 社交媒体链接
  static const String websiteUrl = 'https://gamewiki.com';
  static const String githubUrl = 'https://github.com/gamewiki';
  static const String twitterUrl = 'https://twitter.com/gamewiki';
  static const String discordUrl = 'https://discord.gg/gamewiki';
  
  // 隐私政策和服务条款
  static const String privacyPolicyUrl = 'https://gamewiki.com/privacy';
  static const String termsOfServiceUrl = 'https://gamewiki.com/terms';
  
  // 应用商店链接
  static const String playStoreUrl = 'https://play.google.com/store/apps/details?id=com.gamewiki.app';
  static const String appStoreUrl = 'https://apps.apple.com/app/gamewiki-pro/id123456789';
  
  // 功能标识

  static const bool enableOfflineMode = true;
  static const bool enableDarkMode = true;
  static const bool enableNotifications = true;
  static const bool enableAnalytics = false; // 隐私优先
  
  // API配置
  static const String baseApiUrl = 'https://api.gamewiki.com/v2';
  static const String configApiUrl = 'https://config.gamewiki.com/app';
  static const String cdnUrl = 'https://cdn.gamewiki.com';
  
  // 缓存配置
  static const int maxCacheSize = 100 * 1024 * 1024; // 100MB
  static const int cacheExpireDays = 7;
  
  // 搜索配置
  static const int maxSearchResults = 50;
  static const int searchHistoryLimit = 100;
  
  // 收藏和历史记录限制
  static const int maxFavorites = 1000;
  static const int maxHistoryItems = 1000;
  
  // 网络超时配置
  static const int connectTimeout = 15000; // 15秒
  static const int receiveTimeout = 30000; // 30秒
  
  // 图片配置
  static const int maxImageCacheSize = 50 * 1024 * 1024; // 50MB
  static const List<String> supportedImageFormats = ['jpg', 'jpeg', 'png', 'webp', 'gif'];
  
  // 语言支持
  static const List<String> supportedLanguages = ['zh_CN', 'en_US', 'ja_JP', 'ko_KR'];
  static const String defaultLanguage = 'zh_CN';
  
  // 主题配置
  static const List<String> availableThemes = ['light', 'dark', 'auto'];
  static const String defaultTheme = 'auto';
  
  // 字体配置
  static const List<double> fontSizes = [12.0, 14.0, 16.0, 18.0, 20.0];
  static const double defaultFontSize = 16.0;
  
  // 动画配置
  static const int animationDuration = 300; // 毫秒
  static const int splashDuration = 2000; // 毫秒
  
  // 错误报告
  static const bool enableErrorReporting = false; // 隐私优先
  static const String errorReportingUrl = 'https://errors.gamewiki.com/report';
  
  // 更新检查
  static const bool enableUpdateCheck = true;
  static const String updateCheckUrl = 'https://api.gamewiki.com/v2/app/version';
  
  // 获取应用显示名称
  static String getAppDisplayName(String locale) {
    switch (locale) {
      case 'zh_CN':
      case 'zh_TW':
      case 'zh_HK':
        return appNameChinese;
      default:
        return appName;
    }
  }
  
  // 获取应用描述
  static String getAppDescription(String locale) {
    switch (locale) {
      case 'zh_CN':
      case 'zh_TW':
      case 'zh_HK':
        return appDescriptionChinese;
      default:
        return appDescription;
    }
  }
  
  // 获取完整版本信息
  static String get fullVersion => '$appVersion+$buildNumber';
  
  // 获取用户代理字符串
  static String get userAgent => '$appName/$appVersion (Mobile App)';
  
  // 检查功能是否启用
  static bool isFeatureEnabled(String feature) {
    switch (feature.toLowerCase()) {
      
      case 'offline':
        return enableOfflineMode;
      case 'darkmode':
        return enableDarkMode;
      case 'notifications':
        return enableNotifications;
      case 'analytics':
        return enableAnalytics;
      case 'errorreporting':
        return enableErrorReporting;
      case 'updatecheck':
        return enableUpdateCheck;
      default:
        return false;
    }
  }
  
  // 获取社交媒体链接
  static Map<String, String> get socialLinks => {
    'website': websiteUrl,
    'github': githubUrl,
    'twitter': twitterUrl,
    'discord': discordUrl,
  };
  
  // 获取法律链接
  static Map<String, String> get legalLinks => {
    'privacy': privacyPolicyUrl,
    'terms': termsOfServiceUrl,
  };
  
  // 获取应用商店链接
  static Map<String, String> get storeLinks => {
    'playstore': playStoreUrl,
    'appstore': appStoreUrl,
  };
}